package com.wuseguang.springcloud.service;

import com.wuseguang.springcloud.entity.Roles;
import com.wuseguang.springcloud.util.Result;

/**
 * <p>
 * 角色表 服务类
 * </p>
 *
 * @author zmc
 * @since 2019-11-27
 */
public interface RolesService {


    Result findSchoolRoles(String schoolId, Integer type);

    Result findRolePermissions(String schoolId, Integer indexNo, Integer rows);

    Result findRoleFunction(Integer roleId, String schoolId);

    Result addAndDeleteRoleJurisdiction(Integer roleId, Integer[] jurisdictionId, String schoolId);

    Result updateRoleName(Integer roleId, String name, Integer schoolId);

    Result deleteRole(Integer roleId);

    Result addRole(Roles roles);

    Result findDepartmentTeacher(String schoolId);
}
